.class public Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;
.super Landroid/widget/FrameLayout;
.source "IntroOutroTemplateContainer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$d;,
        Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;
    }
.end annotation


# instance fields
.field private a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

.field private b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

.field private c:Les/cd$e;

.field private d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

.field private e:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$d;

.field private f:Lcom/esfile/screen/recorder/videos/edit/player/c;

.field private g:Les/ud;

.field private h:Les/ud;

.field private i:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    sget-object p1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;->READ_ONLY:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;)Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->e:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$d;

    return-object p0
.end method

.method private a(II)V
    .locals 6

    .line 45
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    const/high16 v1, 0x447a0000    # 1000.0f

    const/4 v2, 0x0

    const/16 v3, 0x8

    const/high16 v4, 0x3f800000    # 1.0f

    if-eqz v0, :cond_2

    .line 46
    invoke-virtual {v0}, Les/ud;->getDuration()I

    move-result v0

    add-int/lit16 v0, v0, -0x3e8

    if-ge p1, v0, :cond_0

    .line 47
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 48
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, v4}, Landroid/widget/FrameLayout;->setAlpha(F)V

    goto :goto_0

    .line 49
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    invoke-virtual {v0}, Les/ud;->getDuration()I

    move-result v0

    if-ge p1, v0, :cond_1

    .line 50
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 51
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    invoke-virtual {v5}, Les/ud;->getDuration()I

    move-result v5

    sub-int/2addr v5, p1

    int-to-float v5, v5

    mul-float v5, v5, v4

    div-float/2addr v5, v1

    invoke-virtual {v0, v5}, Landroid/widget/FrameLayout;->setAlpha(F)V

    goto :goto_0

    .line 52
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 53
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    invoke-virtual {v5}, Les/ud;->isPlaying()Z

    move-result v5

    invoke-virtual {v0, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setPlayState(Z)V

    goto :goto_1

    .line 54
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 55
    :goto_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    if-eqz v0, :cond_5

    .line 56
    invoke-virtual {v0}, Les/ud;->getDuration()I

    move-result v0

    sub-int v0, p2, v0

    if-ge p1, v0, :cond_3

    .line 57
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p1, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_2

    .line 58
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    invoke-virtual {v0}, Les/ud;->getDuration()I

    move-result v0

    sub-int v0, p2, v0

    add-int/lit16 v0, v0, 0x3e8

    if-ge p1, v0, :cond_4

    .line 59
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 60
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    .line 61
    invoke-virtual {v2}, Les/ud;->getDuration()I

    move-result v2

    sub-int/2addr p2, v2

    add-int/lit16 p2, p2, 0x3e8

    sub-int/2addr p2, p1

    int-to-float p1, p2

    mul-float p1, p1, v4

    div-float/2addr p1, v1

    sub-float/2addr v4, p1

    .line 62
    invoke-virtual {v0, v4}, Landroid/widget/FrameLayout;->setAlpha(F)V

    goto :goto_2

    .line 63
    :cond_4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p1, v4}, Landroid/widget/FrameLayout;->setAlpha(F)V

    .line 64
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p1, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 65
    :goto_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    invoke-virtual {p2}, Les/ud;->isPlaying()Z

    move-result p2

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setPlayState(Z)V

    goto :goto_3

    .line 66
    :cond_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p1, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    :goto_3
    return-void
.end method

.method private a(ZZ)V
    .locals 2

    .line 23
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "enableSection:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "TemplateContainer"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    if-nez v0, :cond_0

    .line 25
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "mPlayer:"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_0
    const/4 v0, 0x0

    if-eqz p1, :cond_5

    .line 26
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->c:Les/cd$e;

    if-eqz p1, :cond_3

    iget-object p1, p1, Les/cd$e;->a:Les/cd$g;

    if-nez p1, :cond_1

    goto :goto_0

    :cond_1
    if-eqz p2, :cond_2

    .line 27
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    if-nez p2, :cond_4

    .line 28
    new-instance p2, Les/ud;

    iget-wide v0, p1, Les/cd$g;->k:J

    long-to-int p1, v0

    invoke-direct {p2, p1}, Les/ud;-><init>(I)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    goto :goto_1

    .line 29
    :cond_2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    goto :goto_1

    .line 30
    :cond_3
    :goto_0
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    .line 31
    :cond_4
    :goto_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setIntroSection(Les/ud;)V

    goto :goto_4

    .line 32
    :cond_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->c:Les/cd$e;

    if-eqz p1, :cond_8

    iget-object p1, p1, Les/cd$e;->b:Les/cd$g;

    if-nez p1, :cond_6

    goto :goto_2

    :cond_6
    if-eqz p2, :cond_7

    .line 33
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    if-nez p2, :cond_9

    .line 34
    new-instance p2, Les/ud;

    iget-wide v0, p1, Les/cd$g;->k:J

    long-to-int p1, v0

    invoke-direct {p2, p1}, Les/ud;-><init>(I)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    goto :goto_3

    .line 35
    :cond_7
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    goto :goto_3

    .line 36
    :cond_8
    :goto_2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    .line 37
    :cond_9
    :goto_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setOutroSection(Les/ud;)V

    .line 38
    :goto_4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a()V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g()V

    return-void
.end method

.method private f()V
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    const/16 v1, 0x8

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v3, -0x1

    invoke-direct {v2, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    .line 5
    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v1, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method private g()V
    .locals 7

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    invoke-virtual {v0}, Les/ud;->a()I

    move-result v0

    .line 3
    :goto_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    if-nez v2, :cond_2

    const/4 v2, 0x0

    goto :goto_1

    :cond_2
    invoke-virtual {v2}, Les/ud;->a()I

    move-result v2

    .line 4
    :goto_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getDuration()I

    move-result v3

    if-gtz v3, :cond_3

    const/4 v3, 0x0

    goto :goto_2

    :cond_3
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getProgress()I

    move-result v3

    .line 5
    :goto_2
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    if-nez v4, :cond_4

    const/4 v4, 0x0

    goto :goto_3

    :cond_4
    invoke-virtual {v4}, Les/ud;->getDuration()I

    move-result v4

    .line 6
    :goto_3
    iget-object v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    if-nez v5, :cond_5

    const/4 v5, 0x0

    goto :goto_4

    :cond_5
    invoke-virtual {v5}, Les/ud;->getDuration()I

    move-result v5

    .line 7
    :goto_4
    iget-object v6, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v6}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getDuration()I

    move-result v6

    if-gtz v6, :cond_6

    goto :goto_5

    :cond_6
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getMaxProgress()I

    move-result v1

    :goto_5
    add-int/2addr v0, v2

    add-int/2addr v0, v3

    add-int/2addr v4, v5

    add-int/2addr v4, v1

    .line 8
    invoke-direct {p0, v0, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(II)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 39
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    if-nez v0, :cond_0

    .line 40
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$c;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    .line 41
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    if-nez v0, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    .line 42
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    const/16 v2, 0x6c7

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeMessages(I)V

    if-nez v0, :cond_2

    .line 43
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1

    .line 44
    :cond_2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g()V

    :goto_1
    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/player/c;Les/cd$e;)V
    .locals 4

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    .line 3
    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->c:Les/cd$e;

    const/4 p1, 0x1

    const/4 v0, 0x0

    if-nez p2, :cond_0

    const-string p2, "TemplateContainer"

    const-string v1, "introAndOutroInfo is null"

    .line 4
    invoke-static {p2, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a()V

    .line 6
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a()V

    .line 7
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(ZZ)V

    .line 8
    invoke-direct {p0, v0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(ZZ)V

    return-void

    .line 9
    :cond_0
    iget-object v1, p2, Les/cd$e;->a:Les/cd$g;

    const/16 v2, 0x8

    if-eqz v1, :cond_1

    .line 10
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    invoke-virtual {v1, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setDisplayMode(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;)V

    .line 11
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object v3, p2, Les/cd$e;->a:Les/cd$g;

    invoke-virtual {v1, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setIntroOutroInfo(Les/cd$g;)V

    .line 12
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    new-instance v3, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$a;

    invoke-direct {v3, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;)V

    invoke-virtual {v1, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setOnTemplateViewListener(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;)V

    .line 13
    invoke-direct {p0, p1, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(ZZ)V

    goto :goto_0

    .line 14
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 15
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(ZZ)V

    .line 16
    :goto_0
    iget-object v1, p2, Les/cd$e;->b:Les/cd$g;

    if-eqz v1, :cond_2

    .line 17
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setDisplayMode(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;)V

    .line 18
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    iget-object p2, p2, Les/cd$e;->b:Les/cd$g;

    invoke-virtual {v1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setIntroOutroInfo(Les/cd$g;)V

    .line 19
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;)V

    invoke-virtual {p2, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setOnTemplateViewListener(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;)V

    .line 20
    invoke-direct {p0, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(ZZ)V

    goto :goto_1

    .line 21
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p1, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 22
    invoke-direct {p0, v0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a(ZZ)V

    :goto_1
    return-void
.end method

.method public b()Z
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->c:Les/cd$e;

    if-eqz v0, :cond_1

    iget-object v1, v0, Les/cd$e;->a:Les/cd$g;

    if-nez v1, :cond_0

    iget-object v0, v0, Les/cd$e;->b:Les/cd$g;

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public c()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0, v1}, Les/ud;->seekTo(I)V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0, v1}, Les/ud;->seekTo(I)V

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    if-eqz v0, :cond_2

    .line 7
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->e(I)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->h()V

    :cond_2
    return-void
.end method

.method public d()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->h:Les/ud;

    if-eqz v0, :cond_0

    const/16 v1, 0x3e8

    .line 2
    invoke-virtual {v0, v1}, Les/ud;->seekTo(I)V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->g:Les/ud;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v0}, Les/ud;->getDuration()I

    move-result v1

    invoke-virtual {v0, v1}, Les/ud;->seekTo(I)V

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    if-eqz v0, :cond_2

    .line 6
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getMaxProgress()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->e(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->f:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->h()V

    :cond_2
    return-void
.end method

.method public e()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    if-eqz v0, :cond_0

    const/16 v1, 0x6c7

    .line 2
    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    :cond_0
    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->i:Landroid/os/Handler;

    return-void
.end method

.method public getIntroBitmap()Landroid/graphics/Bitmap;
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->c:Les/cd$e;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/cd$e;->a:Les/cd$g;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(II)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method

.method public getIntroView()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    return-object v0
.end method

.method public getOutroBitmap()Landroid/graphics/Bitmap;
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->c:Les/cd$e;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/cd$e;->b:Les/cd$g;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(II)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method

.method public getOutroView()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    return-object v0
.end method

.method public setDisplayMode(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    return-void
.end method

.method public setIntroTemplateInfoList(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zc;",
            ">;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->a:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setTemplateInfoList(Ljava/util/List;)V

    return-void
.end method

.method public setOnTemplateDeleteCallback(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->e:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$d;

    return-void
.end method

.method public setOutroTemplateInfoList(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zc;",
            ">;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setTemplateInfoList(Ljava/util/List;)V

    return-void
.end method
